<html>
	<head>
    	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    </head>
    <body>
    	<?php
			if(isset($_REQUEST["alder"])){
				if($_REQUEST["alder"] <= 0){
					echo "Nyfødt";
				}
				elseif($_REQUEST["alder"] <= 12){
					echo "Barn";
				}
				elseif($_REQUEST["alder"] <= 19){
					echo "Teenager";
				}
				elseif($_REQUEST["alder"] <= 64){
					echo "Voksen";
				}
				elseif($_REQUEST["alder"] <= 99){
					echo "Pensionist";
				}
				else{
					echo "Løgn og latin";
				}
			}
		?>
        <form action="alder-form.php">
        Alder:<input type="text" name="alder"/><br />
        <input type="submit"/>
        </form>
	</body>
</html>
